package com.bt.mapper;

import com.bt.vo.YddAdvposVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Description TODO
 * @Author 青
 * @Date 2023-04-29 23:56
 */
@Mapper
public interface YddAdvposMapper {
    /**
     * 统计广告位总数
     *
     * @return
     */
    @Select("SELECT COUNT(*) FROM ydd_advpos;")
    Integer countAdvposNum();

    /**
     * 查询广告位列表全部
     * @return
     */
    List<YddAdvposVO> all();

}
